<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <form action="http://toutiao.itheima.net/v1_0/user/photo" method="post" enctype="multipart/form-data">

    <input type="file" name="photo" id="photo">
    <button>提交</button>
  </form>

  <script>
    // axios
    // FormData --> 用js模拟表单数据
    // const fm =  new FormData()  fm.append('key','value')
  </script>
</body>

</html>